package com.mms.entity;

import java.util.HashSet;
import java.util.Set;

import com.sun.org.apache.bcel.internal.generic.NEW;

/**
 * Staff entity. @author MyEclipse Persistence Tools
 */

public class Staff implements java.io.Serializable {

    // Fields

    private Integer SId;
    private Department department=new Department();
    private String SName;
    private Integer sex;
    private Integer adminFlag;
    private String phone;
    private String password;
    private String position;
    private Integer state;
    private String reCode;
    private Set meetings = new HashSet(0);
    private Set invitations = new HashSet(0);

    // Constructors

    /** default constructor */
    public Staff() {
    }

    /** minimal constructor */
    public Staff(Integer SId) {
        this.SId = SId;
    }

    /** full constructor */
    public Staff(Integer SId, Department department, String SName, Integer sex, Integer adminFlag, String phone, String password, String position, Integer state, String reCode,
            Set meetings, Set invitations) {
        this.SId = SId;
        this.department = department;
        this.SName = SName;
        this.sex = sex;
        this.adminFlag = adminFlag;
        this.phone = phone;
        this.password = password;
        this.position = position;
        this.state = state;
        this.reCode = reCode;
        this.meetings = meetings;
        this.invitations = invitations;
    }

    // Property accessors

    public Integer getSId() {
        return this.SId;
    }

    public void setSId(Integer SId) {
        this.SId = SId;
    }

    public Department getDepartment() {
        return this.department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public String getSName() {
        return this.SName;
    }

    public void setSName(String SName) {
        this.SName = SName;
    }

    public Integer getSex() {
        return this.sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAdminFlag() {
        return this.adminFlag;
    }

    public void setAdminFlag(Integer adminFlag) {
        this.adminFlag = adminFlag;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPosition() {
        return this.position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getState() {
        return this.state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getReCode() {
        return this.reCode;
    }

    public void setReCode(String reCode) {
        this.reCode = reCode;
    }

    public Set getMeetings() {
        return this.meetings;
    }

    public void setMeetings(Set meetings) {
        this.meetings = meetings;
    }

    public Set getInvitations() {
        return this.invitations;
    }

    public void setInvitations(Set invitations) {
        this.invitations = invitations;
    }

}